# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=dotenv-linter
pkgver=3.3.0
pkgrel=1
pkgdesc="Lightning-fast linter for .env files"
url="https://dotenv-linter.github.io"
arch="all !s390x !ppc64le !riscv64 !loongarch64" # rust/rustls
license="MIT"
makedepends="cargo cargo-auditable"
source="https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v$pkgver/dotenv-linter-$pkgver.tar.gz"


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/dotenv-linter -t "$pkgdir"/usr/bin
}

sha512sums="
e25fbd98f6c688921b67a83aac13adbb925e535bef9976257b451ad7c285ffd47b2ec7bd42686d718e1d3d7b810f4e2abde04a2aa5edf10b3a8e1334ffe0d7d9  dotenv-linter-3.3.0.tar.gz
"
